package com.example.wxCode.controller;

import com.example.wxCode.domain.Result;
import com.example.wxCode.service.WXQRService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description controller层
 * @Author zengzerui
 * @Date 2025/4/15
 */
@RestController
@RequestMapping("/qr")
public class WXQRController {
    @Autowired
    private WXQRService wxqrService;

    @GetMapping("/getUnlimitCode")
    public Result getUnlimitCode() {
        String code = wxqrService.getUnlimitCode();
        return Result.ok(code);
    }

    @GetMapping("/getlimitCode")
    public Result getlimitCode() {
        String code = wxqrService.getLimitCode();
        return Result.ok(code);
    }

    @GetMapping("/getQRlimitCode")
    public Result getQRlimitCode() {
        String code = wxqrService.getQRLimitCode();
        return Result.ok(code);
    }

}
